package cn.com.hongfu.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.hongfu.dao.RuleMapper;
import cn.com.hongfu.model.Rule;
import cn.com.hongfu.service.RuleService;
@Service("ruleService")
public class RuleServiceImpl implements RuleService{
	@Autowired
	public RuleMapper ruleMapper ;
	@Override
	public int saveRule(Rule rule) {
		ruleMapper.saveRule(rule);
		return 0;
	}

	@Override
	public List<Rule> getAllRule() {
		return ruleMapper.getAllRule();
	}

	@Override
	public Rule getRuleByName(String name) {
		return ruleMapper.getRuleByName(name);
	}
	
}
